package gui;

import javax.swing.ImageIcon;
import javax.swing.JCheckBox;

//Checkbox with special lookout for this game
public class GameCheckBox extends JCheckBox{

	private static final long serialVersionUID = 1L;
	
	//constructor for this class. it sets the string displayed by checkbox
	public GameCheckBox(String string){
		super(string, true);
		setIcon(new ImageIcon("pic/unchecked.gif"));
		setSelectedIcon(new ImageIcon("pic/checked.gif"));
		setRolloverSelectedIcon(new ImageIcon("pic/checked_over.gif"));
		setRolloverIcon(new ImageIcon("pic/unchecked_over.gif"));
		setPressedIcon(new ImageIcon("pic/pressed.gif"));
	}
}